package com.fulihui.weixinclient.request.order;

import com.fulihui.weixinclient.http.HttpMethodEnum;
import com.fulihui.weixinclient.result.order.RedpackageResult;
import com.fulihui.weixinclient.util.XMLUtil;

/**
 * 
 * @author shangsiming
 * 微信红包请求参数
 *
 */
public class RedPackageRequest extends OrderWeixinRequest<RedpackageResult>{
    
    
    /**
     * 
     */
    private static final long serialVersionUID = 6630854280002778226L;

    /* 商户订单号 组成：mch_id+yyyymmdd+10位一天内不能重复的数字*/
    private String mch_billno;
    
    /*公众账号appid*/
    private String wxappid;
    
    /* 商户名称*/
    private String send_name;
    
    /*用户openid  */
    private String re_openid;
    
    /* 付款金额 */
    private String total_amount;
    
    /*红包发放总人数   */
    private String total_num;
    
    /*红包祝福语 */
    private String wishing;
    
    /*Ip地址  调用接口的机器Ip地址 */
    private String client_ip;
    
    /*活动名称  */
    private String act_name;
    
    /*备注*/
    private String remark;
    
    /*场景id*/
    private String scene_id;
    
    /*活动信息*/
    private String risk_info;
    
    /*资金授权商户号   资金授权商户号 服务商替特约商户发放时使用*/
    private String consume_mch_id;
    
    
    
    @Override
    protected void childParam() {
        
    }

    @Override
    public String service() {
        return "https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack";
    }

    @Override
    public String urlEndStr() {
        return null;
    }

    @Override
    public RedpackageResult parseResult(String respStr) {
        return XMLUtil.parseObject(respStr, RedpackageResult.class);
    }

    @Override
    public HttpMethodEnum httpMethod() {
        return HttpMethodEnum.CERT_SSL_POST;
    }

    @Override  
    public String requestData() {
        return XMLUtil.toXMLString(this);
    }
    

    public String getMch_billno() {
        return mch_billno;
    }

    public void setMch_billno(String mch_billno) {
        this.mch_billno = mch_billno;
    }

    public String getWxappid() {
        return wxappid;
    }

    public void setWxappid(String wxappid) {
        this.wxappid = wxappid;
    }

    public String getSend_name() {
        return send_name;
    }

    public void setSend_name(String send_name) {
        this.send_name = send_name;
    }

    public String getRe_openid() {
        return re_openid;
    }

    public void setRe_openid(String re_openid) {
        this.re_openid = re_openid;
    }

    public String getTotal_amount() {
        return total_amount;
    }

    public void setTotal_amount(String total_amount) {
        this.total_amount = total_amount;
    }

    public String getTotal_num() {
        return total_num;
    }

    public void setTotal_num(String total_num) {
        this.total_num = total_num;
    }

    public String getWishing() {
        return wishing;
    }

    public void setWishing(String wishing) {
        this.wishing = wishing;
    }

    public String getClient_ip() {
        return client_ip;
    }

    public void setClient_ip(String client_ip) {
        this.client_ip = client_ip;
    }

    public String getAct_name() {
        return act_name;
    }

    public void setAct_name(String act_name) {
        this.act_name = act_name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getScene_id() {
        return scene_id;
    }

    public void setScene_id(String scene_id) {
        this.scene_id = scene_id;
    }

    public String getRisk_info() {
        return risk_info;
    }

    public void setRisk_info(String risk_info) {
        this.risk_info = risk_info;
    }

    public String getConsume_mch_id() {
        return consume_mch_id;
    }

    public void setConsume_mch_id(String consume_mch_id) {
        this.consume_mch_id = consume_mch_id;
    }


    
    
    
    
    

}
